package renguanyu.app.tools.model.anjuke;

import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;

public class DataCollect {

	private static StringProperty executeLog = new SimpleStringProperty();

	public final static StringProperty executeLogProperty() {
		return executeLog;
	}

	public final static String getExecuteLog() {
		return executeLogProperty().get();
	}

	public final static void setExecuteLog(final String executeLog) {
		executeLogProperty().set(executeLog);
	}

	public final static void appendExecuteLog(final String executeLog) {
		setExecuteLog(getExecuteLog() + executeLog);
	}

	public static void run() {
		CommunityData dq = new CommunityData();
		dq.setUrl("https://daqing.anjuke.com/sale/o5?q={q}");
		dq.setPageDuration(10);
		dq.setCommunityDuration(0);
		dq.setWord("联想科技城");
		dq.setCommId("792299");
		try {
			dq.save();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	public static void run1() {
		CommunityData dq = new CommunityData();
		dq.setUrl("https://daqing.anjuke.com/sale/o5?q={q}");
		dq.setPageDuration(10);
		dq.setCommunityDuration(0);
		dq.setWord("新城枫景");
		dq.setCommId("793444");
		try {
			dq.save();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
